package com.nwpu.coursesupport.pagination;

public enum DialectType {

	MYSQL;
	
	/**
	 * Get dialect type with name
	 * 
	 * @param dialectTypeName the dialect type name
	 * @return
	 */
	public static DialectType getDialectType(String dialectTypeName) {
		for (DialectType dialectType : DialectType.values()) {
			if (dialectType.name().equalsIgnoreCase(dialectTypeName)) {
				return dialectType;
			}
		}
		return null;
	}
}
